home *** CD-ROM | disk | FTP | other *** search
/ Aminet 38 / Aminet 38 (2000)(Schatztruhe)[!][Aug 2000].iso / Aminet / util / arc / bzip2_src.lha / bzip2-1.0.0 / makefile.msc < prev    next >
Encoding:
Makefile  |  2000-04-08  |  1.7 KB  |  66 lines

  1. # Makefile for Microsoft Visual C++ 6.0
  2. # usage: nmake -f makefile.msc
  3. # K.M. Syring (syring@gsf.de)
  4. # Fixed up by JRS for bzip2-0.9.5d release.
  5.  
  6. CC=cl
  7. CFLAGS= -DWIN32 -MD -Ox -D_FILE_OFFSET_BITS=64
  8.  
  9. OBJS= blocksort.obj  \
  10.       huffman.obj    \
  11.       crctable.obj   \
  12.       randtable.obj  \
  13.       compress.obj   \
  14.       decompress.obj \
  15.       bzlib.obj
  16.  
  17. all: lib bzip2 test
  18.  
  19. bzip2: lib
  20.     $(CC) $(CFLAGS) -o bzip2 bzip2.c libbz2.lib setargv.obj
  21.     $(CC) $(CFLAGS) -o bzip2recover bzip2recover.c
  22.  
  23. lib: $(OBJS)
  24.     del libbz2.lib
  25.     lib /out:libbz2.lib $(OBJS)
  26.  
  27. test: bzip2
  28.     type words1
  29.     .\\bzip2 -1  < sample1.ref > sample1.rb2
  30.     .\\bzip2 -2  < sample2.ref > sample2.rb2
  31.     .\\bzip2 -3  < sample3.ref > sample3.rb2
  32.     .\\bzip2 -d  < sample1.bz2 > sample1.tst
  33.     .\\bzip2 -d  < sample2.bz2 > sample2.tst
  34.     .\\bzip2 -ds < sample3.bz2 > sample3.tst
  35.     fc sample1.bz2 sample1.rb2 
  36.     fc sample2.bz2 sample2.rb2
  37.     fc sample3.bz2 sample3.rb2
  38.     fc sample1.tst sample1.ref
  39.     fc sample2.tst sample2.ref
  40.     fc sample3.tst sample3.ref
  41.     @echo All six of the fc's should find no differences.
  42.     @echo If fc finds an error on sample3.tst, this could be
  43.     @echo because WinZips 'TAR file smart CR/LF conversion'
  44.     @echo is too clever for its own good.  Disable this option.
  45.     @echo The correct size for sample3.ref is 120,244.  If it
  46.     @echo is around 150k, WinZip has stuffed it up.
  47.     @echo Also remember to set BZ_UNIX to 0 and BZ_LCCWIN32
  48.     @echo to 1 in bzip2.c.
  49.  
  50.  
  51. clean: 
  52.     del *.obj
  53.     del libbz2.lib 
  54.     del bzip2.exe
  55.     del bzip2recover.exe
  56.     del sample1.rb2 
  57.     del sample2.rb2 
  58.     del sample3.rb2
  59.     del sample1.tst 
  60.     del sample2.tst
  61.     del sample3.tst
  62.  
  63. .c.obj: 
  64.     $(CC) $(CFLAGS) -c $*.c -o $*.obj
  65.  
  66.